import static org.junit.Assert.*;

import org.junit.Test;


public class AdminTest {

	@Test
	public final void testNurseLookup() {
		Admin a1 = new Admin("Admin", "One", "admin", "one");
		
		Nurse n1 = new Nurse("Nurse", "One", "nurse", "one");
		Nurse n2 = new Nurse("Nurse", "Two", "nurse", "two");
		Gui.addToNurseArray(n1);
		Gui.addToNurseArray(n2);
		assertEquals(a1.nurseLookup(n1.firstName, n1.lastName), 0);
		assertEquals(a1.nurseLookup("Nurse", "Three"), -2);
		
		Doctor d1 = new Doctor("Doctor", "One", "doctor", "one");
		Doctor d2 = new Doctor("Doctor", "Two", "doctor", "two");
		Gui.addToDoctorArray(d1);
		Gui.addToDoctorArray(d2);
		assertEquals(a1.doctorLookup(d1.firstName, d1.lastName), 0);
		assertEquals(a1.doctorLookup("Doctor", "Three"), -2);
	}
}
